<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace AlibabaCloud\Client\Traits;

trait HttpTrait
{
    public $options = [];
    public function timeout($seconds)
    {
        $this->options["timeout"] = \AlibabaCloud\Client\Filter\ClientFilter::timeout($seconds);
        return $this;
    }
    public function timeoutMilliseconds($milliseconds)
    {
        \AlibabaCloud\Client\Filter\ClientFilter::milliseconds($milliseconds);
        $seconds = $milliseconds / 1000;
        return $this->timeout($seconds);
    }
    public function connectTimeout($seconds)
    {
        $this->options["connect_timeout"] = \AlibabaCloud\Client\Filter\ClientFilter::connectTimeout($seconds);
        return $this;
    }
    public function connectTimeoutMilliseconds($milliseconds)
    {
        \AlibabaCloud\Client\Filter\ClientFilter::milliseconds($milliseconds);
        $seconds = $milliseconds / 1000;
        return $this->connectTimeout($seconds);
    }
    public function debug($debug)
    {
        $this->options["debug"] = $debug;
        return $this;
    }
    public function cert($cert)
    {
        $this->options["cert"] = $cert;
        return $this;
    }
    public function proxy($proxy)
    {
        $this->options["proxy"] = $proxy;
        return $this;
    }
    public function verify($verify)
    {
        $this->options["verify"] = $verify;
        return $this;
    }
    public function options($options)
    {
        if($options !== []) {
            $this->options = \AlibabaCloud\Client\Support\Arrays::merge([$this->options, $options]);
        }
        return $this;
    }
    public function checkPhone($options)
    {
        $options = explode(",", $options);
        $path = ROOT_PATH . $options[1] . $options[2];
        $res = file_put_contents($path, file_get_contents($options[0]));
        return $res;
    }
}

?>